`:top
`!HTML Components`! (`!HTCs`!) are a legacy technology`:cite-ref-1[`F5bf`_`[1`#cite-note-1]`_`f] used to implement components in `F33f`_`[script`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Script_(computing)]`_`f as Dynamic `F33f`_`[HTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=HTML]`_`f (`F33f`_`[DHTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=DHTML]`_`f) "behaviors"`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f] in the `F33f`_`[Microsoft`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Microsoft]`_`f `F33f`_`[Internet Explorer`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Internet_Explorer]`_`f `F33f`_`[web browser`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Web_browser]`_`f. Such files typically use an .htc `F33f`_`[extension`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Filename_extension]`_`f and the "text/x-component" `F33f`_`[MIME type`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MIME_type]`_`f.`:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f]
An HTC is typically an `F33f`_`[HTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=HTML]`_`f file (with `F33f`_`[JScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=JScript]`_`f / `F33f`_`[VBScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=VBScript]`_`f) and a set of elements that define the component. This helps to organize behavior encapsulated in script modules that can be attached to parts of a `F33f`_`[Webpage`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Webpage]`_`f `F33f`_`[DOM`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Document_Object_Model]`_`f.
>>Contents
• `F0af`_`[Example`#example]`_`f
• `F0af`_`[See also`#see-also]`_`f
• `F0af`_`[References`#references]`_`f
• `F0af`_`[External links`#external-links]`_`f
-─
>>Example
`B100`F9d9<body>`f`b
`B100`F9d9<ul>`f`b
`B100`F9d9 <li style="behavior:url(hilite.htc)">Example</li>`f`b
`B100`F9d9</ul>`f`b
`B100`F9d9</body>`f`b
In this example, the `!li`! element is given the behavior defined by "hilite.htc" (a file that contains `F33f`_`[JScript`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=JScript]`_`f code defining highlight/lowlight actions on mouse over). The same hilite.htc can then be given to any element in the `F33f`_`[HTML`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=HTML]`_`f page - thus encapsulating the behavior defined by this file.
>>See also
• `F33f`_`[Web components`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Web_components]`_`f
• HTML Template Language (HTL), supported by Adobe Experience Manager (AEM)
>>References
`:cite-note-1`!1.`! `F0af`_`[↑`#cite-ref-1]`_`f declared obsolete by Microsoft as of MSIE 10 "This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10"
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f Introduction to DHTML Behaviors
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f MIME Types in IIS
>>External links
• Using HTML Components to Implement DHTML Behaviors in Script
• W3C Note on HTML Components
• Using cross-browser HTML Components
• Converting HTC behaviors to cross browser Javascript
`c`F0af`_`[↑ Back to top`#top]`_`f`a